page {
  background: #f5f7fa;
  transition: background-color .4s;
}

.wrapper {
  height: 100vh;
  position: fixed;
  transition: transform .4s;
  transition: transform .4s,-webkit-transform .4s;
  width: 100%;
}

.rect {
  border: 4rpx solid #edf2fa;
  display: inline-block;
  font-size: 0;
  left: 50%;
  position: fixed;
  top: calc(42% - 20px - 10rpx);
  transform: translate(-50%,-50%);
}

.rect .top-left {
  border-left: 6rpx solid #e7eef8;
  left: -20rpx;
}

.rect .top-left,.rect .top-right {
  border-top: 6rpx solid #e7eef8;
  height: 24rpx;
  position: absolute;
  top: -20rpx;
  width: 24rpx;
}

.rect .top-right {
  border-right: 6rpx solid #e7eef8;
  right: -20rpx;
}

.rect .bottom-right {
  border-right: 6rpx solid #e7eef8;
  right: -20rpx;
}

.rect .bottom-left,.rect .bottom-right {
  border-bottom: 6rpx solid #e7eef8;
  bottom: -20rpx;
  height: 24rpx;
  position: absolute;
  width: 24rpx;
}

.rect .bottom-left {
  border-left: 6rpx solid #e7eef8;
  left: -20rpx;
}

.rect .photo {
  height: auto;
  width: 490rpx;
}

.rect .bg {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.edit-wrapper {
  background: #fff;
  border-radius: 32rpx 32rpx 0 0;
  bottom: 0;
  box-shadow: 0 -5rpx 24rpx 0 rgba(0,0,0,.04);
  box-sizing: initial;
  height: 400rpx;
  padding-bottom: calc(env(safe-area-inset-bottom) / 2);
  position: fixed;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.edit-wrapper .content {
  width: 100%;
  height: 265rpx;
}

.edit-wrapper .bottom {
  width: 100%;
  height: 135rpx;
  display: flex;
  align-items: center;
  font-size: 32rpx;
}

.btn {
  background: #8280FF;
  color: #ffffff;
  border-radius: 50rpx;
  font-weight: 700;
  height: 100rpx;
  line-height: 100rpx;
  margin: 0rpx 30rpx;
  width: 100%;
}

.colors {
  height: 196rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20rpx 40rpx;
  overflow-x: auto;
  gap: 32rpx;
}

.color {
  border-radius: 64rpx;
  font-size: 0;
  height: 64rpx;
  min-width: 64rpx;
  flex-shrink: 0;
  border: 4rpx solid #f2f2f5;
}
